import sys

passage = ""
for line in sys.stdin:
    passage += line
line = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
numList = []
list = line.split(",")
for i in list[::]:
    numList.append(passage.count(i))
max_num = max(numList)
for i in range(max_num):
    for j in numList:
        if j >= (max_num - i):
            print("*", end="")
        else:
            print(" ", end="")
    print()
print(line.replace(",", ""))
